package com.gitee.shoes.dto;

import com.gitee.shoes.crawler.bean.OrderMode;
import com.gitee.shoes.enumeration.PlatformEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author LYH
 */
@Data
public class ProductListQuery {

    @NotNull
    private PlatformEnum platform;

    private String nextKey;

    private Integer current;

    private Integer size;

    @NotEmpty
    private String keyword;

    private OrderMode orderMode;

}
